package com.example.victory.swagger.model;

import com.fasterxml.jackson.annotation.JsonValue;

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * 账户状态，已开通、未开通、条件不符
 */
public enum AccountStatusEnum {
  
  OPEN("OPEN"),
  
  UNOPEN("UNOPEN"),
  
  INCONFORMITY("INCONFORMITY");

  private String value;

  AccountStatusEnum(String value) {
    this.value = value;
  }

  @Override
  @JsonValue
  public String toString() {
    return String.valueOf(value);
  }

  @JsonCreator
  public static AccountStatusEnum fromValue(String text) {
    for (AccountStatusEnum b : AccountStatusEnum.values()) {
      if (String.valueOf(b.value).equals(text)) {
        return b;
      }
    }
    return null;
  }
}

